package com.aiinterview.subjectservice.controller;


import com.aiinterview.model.subject.entity.SubjectCategory;
import com.aiinterview.subjectservice.service.SubjectCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/subject")
public class SubjectControler {

    @Autowired
    private SubjectCategoryService subjectCategoryService;
    @GetMapping("/test")
    public SubjectCategory test() {
        return subjectCategoryService.queryById(1L);
    }
}
